home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / PageMakerClassLibrary / Commands / PSelectExtend.cpp < prev    next >
C/C++ Source or Header  |  1996-07-12  |  934b  |  37 lines

  1. /*
  2.  *--- PSelectExtend.h ------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Thu, Oct 12, 1995 @ 11:31 PM by Paul Ferguson.
  5.  *
  6.  * Description: This implements a select command.  You can
  7.  * select by either x,y coordinates, or by drawing order.  The
  8.  * two constructors implement these two options.
  9.  *-------------------------------------------------------------------------
  10.  */
  11.  
  12. #include "PCommand.h"
  13. #include "PRequestBuf.h"
  14. #include "PSelectExtend.h"
  15.  
  16. PSelectExtend::PSelectExtend(long x, long y)
  17. {
  18.     DoSelect(0, x, y);
  19. }
  20.  
  21. PSelectExtend::PSelectExtend(long drawOrder)
  22. {
  23.     DoSelect(1, drawOrder, 0L);
  24. }
  25.  
  26. void PSelectExtend::DoSelect(short nSelect, long x, long y)
  27. {
  28.     char temp[20];
  29.     PRequestBuf request(temp);
  30.     
  31.     request << nSelect << x << y;
  32.     
  33.     PCommand command(pm_selectextend, request);
  34. }
  35.  
  36. // end of PSelectExtend.h
  37.